<template>
  <div class="app-container">

    <!-- 搜索工作栏 -->
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <!-- <el-form-item label="创建时间" prop="createTime">
        <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item> -->
      <el-form-item label="订单号" prop="orderCode">
        <el-input v-model="queryParams.orderCode" placeholder="请输入订单号" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="订单状态" prop="orderStatus">
        <el-select v-model="queryParams.orderStatus" placeholder="请选择订单状态" clearable size="small">
          <el-option v-for="item in isorderStatusList" :label="item.label" :value="item.value" :key="item.value" />
        </el-select>
      </el-form-item>
      <!-- <el-form-item label="收货人地址信息" prop="address">
        <el-input v-model="queryParams.address" placeholder="请输入收货人地址信息" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="物流信息" prop="logistic">
        <el-input v-model="queryParams.logistic" placeholder="请输入物流信息" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item> -->
      <el-form-item label="商品信息" prop="goods">
        <el-input v-model="queryParams.goods" placeholder="请输入商品信息" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="支付状态" prop="payStatus">
        <el-select v-model="queryParams.payStatus" placeholder="请选择支付状态" clearable size="small">
          <el-option label="已支付" :value="1" />
          <el-option label="未支付" :value="2" />
        </el-select>
      </el-form-item>
      <el-form-item label="是否使用代金券" prop="isVoucher">
        <el-select v-model="queryParams.isVoucher" placeholder="请选择" clearable size="small">
          <el-option label="是" :value="1" />
          <el-option label="否" :value="2" />
        </el-select>
      </el-form-item>
      <el-form-item label="支付时间" prop="payTime">
        <el-date-picker v-model="queryParams.payTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <!-- <el-form-item label="最新发货时间" prop="logisticTime">
        <el-date-picker v-model="queryParams.logisticTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="收货确认时间" prop="confirmTime">
        <el-date-picker v-model="queryParams.confirmTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="下单时间" prop="addTime">
        <el-date-picker v-model="queryParams.addTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="订单总价" prop="totalAmount">
        <el-input v-model="queryParams.totalAmount" placeholder="请输入订单总价" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="抵扣金额" prop="deduction">
        <el-input v-model="queryParams.deduction" placeholder="请输入抵扣金额" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item> -->
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <!-- 操作工具栏 -->
    <el-row :gutter="10" class="mb8">
      <!-- <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <!-- 内容 -->
    <div class="content">
      <div class="item" v-for="(item,index) in list" :key="item.id">
        <div class="title">
          <p>订单号：{{item.orderCode}}</p>
          <p>创建时间：{{parseTime(item.createTime)}}</p>
        </div>
        <div class="area">
          <div class="arealeft">
            <div class="leftitem" v-for="(ite,inde) in item.goods" :key="inde+index+'a'">
              <div class="goods">
                <img :src="ite.img" alt="">
                <div class="guige">
                  <p class="name">{{ite.goodsName}}</p>
                  <p>规格：{{ite.attrName}} ; {{ite.sizeName}}</p>
                </div>
              </div>

              <p class="pricep">￥ {{ite.price}}</p>
              <p class="pricep">{{ite.goodsNum}}</p>
            </div>
          </div>
          <div class="arearight" :style="{height:item.goods.length * 110 + 'px'}">
            <div class="status">
              <p>{{isorderStatus[item.orderStatus]}}</p>
              <span @click="lookDetail(item)">详情</span>
            </div>

            <div class="price">
              <span class="payPrice">￥ {{item.payPrice}}</span>
              <span class="freightPrice">(含快递:￥{{item.freightPrice}})</span>
              <span v-show="item.orderStatus === 2" class="wuliu" @click="handleShipments(item)">备货完毕</span>
              <span v-show="item.orderStatus === 3" class="wuliu" @click="pickUpAdd(item)">取货</span>
<!--              <span v-show="item.orderStatus === 3" class="wuliu" @click="handleLogistics(item)">查看物流</span>-->
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 列表 -->
    <!-- <el-table v-loading="loading" :data="list">
      <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="用户ID" align="center" prop="cre" />
      <el-table-column label="手机号" align="center" prop="phone" />
      <el-table-column label="订单号" align="center" prop="orderCode" />
      <el-table-column label="订单状态" align="center" prop="orderStatus">
        <template v-slot="scope">
          <span>{{ isorderStatus[scope.row.orderStatus] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="收货人地址信息" show-overflow-tooltip align="center" prop="address">
        <template v-slot="scope">
          <span>{{scope.row.address.provinceName}}{{scope.row.address.cityName}}{{scope.row.address.districtName}}{{scope.row.address.address}}</span>
        </template>
      </el-table-column>
      <el-table-column label="商品信息" align="center" prop="goods" width="185">
        <template v-slot="scope">
          <el-tooltip placement="top">
          <div slot="content">
            <p>名称：{{scope.row.goods[scope.row.imgIndex].goodsName}}</p>
            <p>规格：{{scope.row.goods[scope.row.imgIndex].attrName}};{{scope.row.goods[scope.row.imgIndex].sizeName}}</p>
            <p>价格：{{scope.row.goods[scope.row.imgIndex].price}}</p>
            <p>数量：{{scope.row.goods[scope.row.imgIndex].goodsNum}}</p>
            <p>原价：{{scope.row.goods[scope.row.imgIndex].totalPrice}}</p>
          </div>
            <div class="imgbox" v-if="scope.row.goods.length !== 0">
              <img class="imgstyle" :src="scope.row.goods[scope.row.imgIndex].img" alt="">
              <div class="toleftstyle" @click="toleft(scope.$index,scope.row.goods.length,scope.row.imgIndex)"><i class="el-icon-arrow-left"></i></div>
              <div class="torightstyle" @click="toright(scope.$index,scope.row.goods.length,scope.row.imgIndex)" ><i class="el-icon-arrow-right"></i></div>
            </div>
          </el-tooltip>

        </template>
      </el-table-column>
      <el-table-column label="支付状态" align="center" prop="payStatus">
        <template v-slot="scope">
          <span>{{ zhifuStatus[scope.row.payStatus] }}</span>
        </template>
      </el-table-column>
      <el-table-column label="支付时间" align="center" prop="payTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.payTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="最新发货时间" align="center" prop="logisticTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.logisticTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="收货确认时间" align="center" prop="confirmTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.confirmTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="下单时间" align="center" prop="addTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.addTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="订单原价" align="center" prop="totalAmount" />
      <el-table-column label="商品总价" align="center" prop="goodsAmount" />
      <el-table-column label="运费" align="center" prop="freightPrice" />
      <el-table-column label="抵扣金额" align="center" prop="deduction" />
      <el-table-column label="付款金额" align="center" prop="payPrice" />
      <el-table-column  fixed="right" label="操作" align="center" class-name="small-padding fixed-width">
        <template v-slot="scope">
          <el-button  size="mini" v-show="scope.row.orderStatus === 2" type="text"  @click="handleShipments(scope.row)">发货</el-button>
          <el-button  size="mini" v-show="scope.row.orderStatus === 3" type="text"  @click="handleLogistics(scope.row)">查看物流</el-button>
        </template>
      </el-table-column>
    </el-table> -->
    <!-- 分页组件 -->
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
                @pagination="getList"/>

    <!-- 发货弹窗 -->
    <el-dialog :title="订单发货" :visible.sync="shipmentsopen" width="400px" v-dialogDrag append-to-body>
        <span style="font-size: 17px;font-weight: 500;padding-right: 20px">
          是否可以取货
        </span>
      <el-form ref="shipmentsform" :model="shipmentsform" :rules="shipmentsrules" label-width="100px">
<!--        <el-form-item label="订单编号" prop="code">-->
<!--          <el-input disabled v-model="shipmentsform.code" placeholder="请输入订单号" />-->
<!--        </el-form-item>-->
<!--        <el-form-item label="物流公司" prop="name">-->
<!--          <el-select filterable @change="changename" v-model="shipmentsform.name" placeholder="请选择物流公司" clearable size="small">-->
<!--            <el-option v-for="item in wuliuList" :label="item.name" :value="item.name" :key="item.id" />-->
<!--          </el-select>-->
<!--        </el-form-item>-->
<!--        <el-form-item label="物流单号" prop="num">-->
<!--          <el-input v-model="shipmentsform.num" placeholder="请输入物料单号" />-->
<!--        </el-form-item>-->
        <!-- <el-form-item label="运费" prop="price">
          <el-input v-model="shipmentsform.price" placeholder="请输入运费" />
        </el-form-item> -->
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="shipmentssubmitForm">确 定</el-button>
        <el-button @click="shipmentsopen =false">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 物流弹窗 -->
    <el-dialog :title="title" :visible.sync="logisticsopen" width="800px" v-dialogDrag append-to-body>
      <div>
        <div style="font-size:18px;display:flex;justify-content: space-between;margin-bottom:20px;">
          <span>物流公司：{{logisticsform.com}}</span>
          <span>物流编号：{{logisticsform.nu}}</span>
        </div>
        <el-steps direction="vertical" :active="1">
          <el-step v-for="(item,index) in logisticsform.data" :key="index+'a'" :title="item.ftime" :description="item.context"></el-step>
        </el-steps>
      </div>
    </el-dialog>

    <!-- 对话框(添加 / 修改) -->
    <el-dialog :title="title" :visible.sync="open" width="600px" v-dialogDrag append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="100px">
        <el-form-item label="订单号" prop="orderCode">
          <el-input v-model="form.orderCode" placeholder="请输入订单号" />
        </el-form-item>
        <el-form-item label="订单状态" prop="orderStatus">
          <!-- <el-radio-group v-model="form.orderStatus">
            <el-radio label="1">请选择字典生成</el-radio>
          </el-radio-group> -->
          <el-select v-model="form.orderStatus" placeholder="请选择订单状态" clearable size="small">
            <el-option v-for="item in isorderStatusList" :label="item.label" :value="item.value" :key="item.value" />
          </el-select>
        </el-form-item>
        <el-form-item label="收货人地址信息" prop="address">
          <el-input v-model="form.address" placeholder="请输入收货人地址信息" />
        </el-form-item>
        <el-form-item label="物流信息" prop="logistic">
          <el-input v-model="form.logistic" placeholder="请输入物流信息" />
        </el-form-item>
        <el-form-item label="商品信息" prop="goods">
          <el-input v-model="form.goods" placeholder="请输入商品信息" />
        </el-form-item>
        <el-form-item label="支付状态" prop="payStatus">
          <!-- <el-radio-group v-model="form.payStatus">
            <el-radio label="1">请选择字典生成</el-radio>
          </el-radio-group> -->
          <el-select v-model="form.payStatus" placeholder="请选择支付状态" clearable size="small">
            <el-option label="已支付" :value="1" />
            <el-option label="未支付" :value="2" />
          </el-select>
        </el-form-item>
        <el-form-item label="支付时间" prop="payTime">
          <el-date-picker clearable v-model="form.payTime" type="date" value-format="timestamp" placeholder="选择支付时间" />
        </el-form-item>
        <el-form-item label="最新发货时间" prop="logisticTime">
          <el-date-picker clearable v-model="form.logisticTime" type="date" value-format="timestamp" placeholder="选择最新发货时间" />
        </el-form-item>
        <el-form-item label="收货确认时间" prop="confirmTime">
          <el-date-picker clearable v-model="form.confirmTime" type="date" value-format="timestamp" placeholder="选择收货确认时间" />
        </el-form-item>
        <el-form-item label="下单时间" prop="addTime">
          <el-date-picker clearable v-model="form.addTime" type="date" value-format="timestamp" placeholder="选择下单时间" />
        </el-form-item>
        <el-form-item label="订单总价" prop="totalAmount">
          <el-input v-model="form.totalAmount" placeholder="请输入订单总价" />
        </el-form-item>
        <el-form-item label="抵扣金额" prop="deduction">
          <el-input v-model="form.deduction" placeholder="请输入抵扣金额" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>


    <!-- 兑换框 -->
    <el-dialog :title="兑换奖品" :visible.sync="pickUpOpen" width="500px" v-dialogDrag append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="兑换码" prop="code">
          <el-input v-model="form.pickUpCode" placeholder="请输入兑换码" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="pickingUpGoods(form)">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { createOrder, updateOrder, deleteOrder, getOrder, getOrderPage, exportOrderExcel } from "@/api/qd/order";

export default {
  name: "Order",
  components: {
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 小程序-订单列表
      list: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNo: 1,
        pageSize: 10,
        createTime: [],
        orderCode: null,
        orderStatus: null,
        address: null,
        logistic: null,
        goods: null,
        payStatus: null,
        payTime: [],
        logisticTime: [],
        confirmTime: [],
        addTime: [],
        totalAmount: null,
        deduction: null,
        isVoucher:null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        orderCode: [{ required: true, message: "订单号不能为空", trigger: "blur" }],
        address: [{ required: true, message: "收货人地址信息不能为空", trigger: "blur" }],
      },
      zhifuStatus:{1:"已支付",2:'未支付'},
      isorderStatus:{1: '待支付', 2:'备货中' ,3: '待收货' ,4: '已完成' ,5:'退款售后',6:'已失效'},
      isorderStatusList:[
        {label:'待支付',value:1},
        {label:'备货中',value:2},
        {label:'待收货',value:3},
        {label:'已成团',value:4},
        {label:'退款售后',value:5},
      ],
      // 发货弹窗
      shipmentsopen:false,
      shipmentsform:{},
      shipmentsrules:{
        name:[{required:true,message:'物流公司不能为空',trigger:'change'}],
        num:[{required:true,message:'物料单号不能为空',trigger:'blur'}]
      },
      wuliuList:[],
      // 物流弹窗
      logisticsform:{},
      logisticsopen:false,
      pickUpOpen:false,
    };
  },
  created() {
    this.getList();
    this.getwuliuList()
  },
  methods: {
    getwuliuList(){
      this.$axios({url:'/qd/logistics/getList',method:'get'}).then(res=>{
        this.wuliuList = res.data ?? []
      })
    },
    handleShipments(row){  // 发货按钮
      this.shipmentsform = {
        id:row.id,
      }
      this.shipmentsopen = true
    },
    handleLogistics(row){ // 查看物流按钮
      this.$axios({url:'/qd/order/findLogistics?id='+row.id,method:'get'}).then(res=>{

        this.logisticsform = res.data ?? {}
        this.logisticsopen = true
      })
    },
    pickUpAdd(row){
      this.reset();
      this.title="取货";
      const id = row.id;
      getOrder(id).then(response => {
        this.form = response.data;
        this.pickUpOpen = true;
      });

    },
    pickingUpGoods(row){//取货
      const id = row.id;
      const code = row.pickUpCode;
      this.$axios({url:'/qd/order/pickingUpGoods?id='+id+'&code='+code,method:'get'}).then(res=>{
        this.$modal.msgSuccess("兑换成功");
        this.pickUpOpen=false;
        this.getList();
      })
    },
    changename(e){ // 选择物流名称时执行
      const code = this.wuliuList.filter(item=>item.name === e)[0].code
      this.$set(this.shipmentsform,'code',code)
    },
    shipmentssubmitForm(){  // 发货弹窗确定
     const obj = {
      id:this.shipmentsform.id,
      dto:{
        code:this.shipmentsform.code,
        name:this.shipmentsform.name,
        num:this.shipmentsform.num
      }
     }
      this.$axios({url:'/qd/order/addLogistics',method:'post',data:obj}).then(res=>{
        this.$message.success('发货成功')
        this.shipmentsopen = false
        this.getList()
      })
    },
    lookDetail(row){ // 查看详情
      this.$router.push({path:'/miniProgramData/orderDetail',query:{id:row.id}})
    },
    /** 查询列表 */
    getList() {
      this.loading = true;
      // 执行查询
      getOrderPage(this.queryParams).then(response => {
        this.list = response.data.list;
        this.list.forEach(item=>{
          this.$set(item,'imgIndex',0)
        })
        this.total = response.data.total;
        this.loading = false;
      });
    },
    toleft(index,imglength,iindex){  // 图片向右
        if(iindex === 0) return this.list[index].imgIndex = imglength - 1 ?? 0
        this.list[index].imgIndex -= 1
    },
    toright(index,imglength,iindex){  // 图片向左
        if(imglength - 1 === iindex) return this.list[index].imgIndex = 0
        this.list[index].imgIndex += 1
    },
    /** 取消按钮 */
    cancel() {
      this.open = false;
      this.pickUpOpen=false;
      this.reset();
    },
    /** 表单重置 */
    reset() {
      this.form = {
        id: undefined,
        orderCode: undefined,
        orderStatus: undefined,
        address: undefined,
        logistic: undefined,
        goods: undefined,
        payStatus: undefined,
        payTime: undefined,
        logisticTime: undefined,
        confirmTime: undefined,
        addTime: undefined,
        totalAmount: undefined,
        deduction: undefined,
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNo = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加小程序-订单";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id;
      getOrder(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改小程序-订单";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (!valid) {
          return;
        }
        // 修改的提交
        if (this.form.id != null) {
          updateOrder(this.form).then(response => {
            this.$modal.msgSuccess("修改成功");
            this.open = false;
            this.getList();
          });
          return;
        }
        // 添加的提交
        createOrder(this.form).then(response => {
          this.$modal.msgSuccess("新增成功");
          this.open = false;
          this.getList();
        });
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const id = row.id;
      this.$modal.confirm('是否确认删除?').then(function() {
          return deleteOrder(id);
        }).then(() => {
          this.getList();
          this.$modal.msgSuccess("删除成功");
        }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      // 处理查询参数
      let params = {...this.queryParams};
      params.pageNo = undefined;
      params.pageSize = undefined;
      this.$modal.confirm('是否确认导出所有小程序-订单?').then(() => {
          this.exportLoading = true;
          return exportOrderExcel(params);
        }).then(response => {
          this.$download.excel(response, '小程序-订单.xls');
          this.exportLoading = false;
        }).catch(() => {});
    }
  }
};
</script>
<style lang="scss" scoped>
@import "../../styles/imgstyle.scss";
.content{
  padding: 20px;
  .item{
    display: flex;
    flex-direction: column;
    .title{
      display: flex;
      background-color: rgb(240, 242, 250);
      border-radius: 10px;
      padding: 0 5px;
      p{
        font-size: 12px;
        padding-right: 10px;
      }
    }
    .area{
      display: flex;
      .arealeft{
        width: 70%;
        display: flex;
        flex-direction: column;
        .leftitem{
          display: flex;
          height: 110px;
          justify-content: space-between;
          padding: 5px 0;

          .goods{
            display: flex;
            width: 65%;
            .guige{
              padding-left: 5px;
              .name{
                font-size: 14px;
              }
            }
          }
          img{
            width: 100px;
            height: 100px;
            border-radius: 20px;
          }
          .div{
            display: flex;
            flex-direction: column;
          }
          .pricep{
            white-space: nowrap;

          }
        }
      }
      .arearight{
        width: 30%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        .status{
          display: flex;
          flex-direction: column;
          span{
            color: rgb(142, 144, 267);
            cursor: pointer;
          }
        }
        .price{
          display: flex;
          flex-direction: column;
          text-align: center;
          span{
            white-space: nowrap;
          }
          .freightPrice{
            color: #ccc;
          }
          .wuliu{
            color: rgb(142, 144, 267);
            cursor: pointer;
          }
        }
      }
    }
  }
}
</style>
